<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="GCMS" />
<meta name="description" content="GCMS" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" type="text/css" href="<?=$style?>" media="screen" />
<title>GCMS (<?=$title?>)</title>
<script src="<?=base_url();?>system/scriptaculous/lib/prototype.js" type="text/javascript"></script>
</head>
<body>

<div id="wrapper">
	<div id="top">
		<div style="float:right;padding-right:40px;">Hi <a href="<?=base_url();?>users" target="main"><?=$this->session->userdata('username');?></a> | <? echo anchor('admin/logout', 'Logout'); ?></div>
		<div style="padding-left:20px;"><a href="admin">Dashboard</a> | <a href="<?=base_url();?>" target="_top">View Site</a></div>
	</div>
	<div id="header">
		<h1><?=$title?></h1>
		<div id="nav">
		<ul id="navul">
		<li><a href="<?=base_url();?>main" target="main" onclick="active(this);" class="active">Dashboard</a></li>
		<li><a href="<?=base_url();?>news" target="main" onclick="active(this);">Latest News</a></li>
		<li><a href="<?=base_url();?>manage" target="main" onclick="active(this);">Pages</a></li>
		<li><a href="<?=base_url();?>files" target="main" onclick="active(this);">Files</a></li>
		<li><a href="<?=base_url();?>users" target="main" onclick="active(this);">Users</a></li>
		<li><a href="<?=base_url();?>theme" target="main" onclick="active(this);">Themes</a></li>
		<li><a href="<?=base_url();?>options" target="main" onclick="active(this);">Options</a></li>
		</ul>
		<script type="text/javascript">
		function active(element){
			links = $('navul').childElements(); 
			$A(links).each(function(li){
				li.down(0).removeClassName('active');
			});
			element.addClassName('active');
		}
		</script>
		</div>
	</div>
	<div id="content">
		<div id="frame">
			<iframe id="main" name="main" frameborder="0" src="main" style="width:100%;height:100%;"></iframe>
		</frame>
	</div>
</div>
</body>
</html>